package com.lesson01;

public class Test05 {
    public static void main(String[] args) {
        A a = new A();
        System.out.println(A.m);
        /*
        1.加载到内存，产出Class对象
        2.链接
        3.初始化
            <clinit>(){
                静态代码块
                静态变量初始化
               }
        */
    }
}
class A{
    static {
        System.out.println("A类的静态代码块");
        m = 300;
    }
    static int m = 100;
    public A(){
        System.out.println("A类的无参构造方法");
    }
}